package Service.impl;

import Service.IAddressService;
import dao.IAddressDao;
import dao.impl.AddressDaoImpl;
import pojo.Address;
import pojo.User;

/**
 * @author liang
 */
public class AddressServiceImpl implements IAddressService {
    private IAddressDao addressDao = new AddressDaoImpl();
    @Override
    public void addAddress(Address address, User user) {
        addressDao.addAddress(address,user);
    }

    @Override
    public void updateAddress(Address address, User user) {
        addressDao.updateAddress(address,user);
    }

    @Override
    public void deleteAddress(User user) {
        addressDao.deleteAddress(user);
    }
}
